package com.holly.unit.auth.api.pojo.auth;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="用户登录记录", description="")
//@TableName("sys_login_record")
public class LoginRecord {

	public static final String LOGIN_RECORD_LOCKED = "1";
	public static final String LOGIN_RECORD_UN_LOCKED = "0";

    private static final long serialVersionUID = 1L;

   // @TableId
    private String username;

  //  @ApiModelProperty(value = "上次登录时间")
    private Long loginTime;

   // @ApiModelProperty(value = "上次登录IP")
    private String ip;

   // @ApiModelProperty(value = "上次登录设备")
    private String device;

    private Boolean locked = false;

   // @ApiModelProperty(value = "锁定时间")
    private Long lockedTime;
    
    //@ApiModelProperty(value = "错误次数")
    private Integer errorCount;

}
